package com.weishu.banking.controller;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.weishu.common.core.web.domain.AjaxResult;
import com.weishu.core.caiwu.JrFactoringRequestDto;
import com.weishu.core.caiwu.JrFactoringResponseDto;
import com.weishu.core.service.IJrFactoringDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/bank")
public class BankingFactoringController {

    /**
     * 维数公寓保理查询
     */

    @Autowired
    private IJrFactoringDetailService jrFactoringDetailService;

    @RequestMapping("list")
    public AjaxResult bankList( Integer pageNo,Integer pageSize, JrFactoringRequestDto param){
        PageHelper.startPage(pageNo, pageSize);
        List<JrFactoringResponseDto> jrFactoringResponseDtos = jrFactoringDetailService.searchJrFactoringDtPage(param);
        PageInfo<JrFactoringResponseDto> info=new PageInfo<>(jrFactoringResponseDtos);
        return AjaxResult.success(info);
    }





}
